package newCar;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-04
 * Time: 21:06
 */
public class FrameWork {
    private Bottom bottom;

    //以前是自己造一个底盘,现在我找别人给我给我造
    public FrameWork(Bottom bottom){
        this.bottom = bottom;
    }

    public void init(){
        System.out.println("FrameWork init!!!");
        //车身要依赖于底盘类的
        bottom.init();
    }


}
